import urllib.request as ur
import user_agent as ua


request = ur.Request(
    url='https://edu.csdn.net/',
    headers={
        'User-Agent': ua.get_user_agent_pc(),
    }
)

response = ur.urlopen(request).read()
print(response)